package com.codingfuture.erp_system.service;

import com.codingfuture.erp_system.dto.OrdersDetailDto;
import com.codingfuture.erp_system.dto.OrdersDto;
import com.codingfuture.erp_system.entity.Orders;
import com.codingfuture.erp_system.entity.Role;
import com.codingfuture.erp_system.entity.Supplier;

import java.util.Date;
import java.util.List;

public interface OrdersService {
    List<Orders> findByAll(Orders orders);

    List<OrdersDetailDto> findOrdersDetailDto(long uuid);

    List<Supplier> showSupplier(Integer type);


    List<OrdersDetailDto> findByOrders();

    Boolean addOrders(Orders orders, OrdersDetailDto ordersDetailList);

    Boolean doStart(Integer id, Date date);

    Boolean doCheck(Integer id, Date date);

    int addOrdersDetail(List<OrdersDetailDto> ordersDetails);

    int addById(OrdersDto ordersDto);

    Role findByName(Object name);
}
